package com.atguigu.yygh.hosp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.atguigu.yygh.hosp.mapper")
@ComponentScan("com.atguigu") //  扫描service-util 模块下的 config 包下的配置类
@EnableDiscoveryClient //nacos注册
@EnableFeignClients(basePackages = "com.atguigu") //扫描feign 包
public class ServiceHospApplication8201 {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication8201.class, args);
    }
}
